package handle_client;

import java.io.ObjectOutputStream;
import java.util.ArrayList;

import entities.CommandMessage;

public class ClientDelegate {

	public static ArrayList<ClientDelegate> client_delegates = new ArrayList<ClientDelegate>();
	
	
	private ArrayList<CommandMessage> message_queue;
	
	private ObjectOutputStream output_stream;
	private int user_number;
	
	public ObjectOutputStream getOutput_stream() {
		return output_stream;
	}

	public int getUser_number() {
		return user_number;
	}


	public ArrayList<CommandMessage> getMessage_queue() {
		return message_queue;
	}

	public ClientDelegate(ObjectOutputStream out, int u_n) {
		// TODO Auto-generated constructor stub
		output_stream  = out;
		user_number = u_n;
		message_queue = new ArrayList<CommandMessage>();
		//System.out.println(""+u_n+"are in");
	}

}
